<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<meta name="generator" content="JsDoc Toolkit" />
		
		<title>JsDoc Reference - Background</title>

		<style type="text/css">
			/* default.css */
body
{
	font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
	width: 800px;
}

.header
{
	clear: both;
	background-color: #ccc;
	padding: 8px;
}

h1
{
	font-size: 150%;
	font-weight: bold;
	padding: 0;
	margin: 1em 0 0 .3em;
}

hr
{
	border: none 0;
	border-top: 1px solid #7F8FB1;
	height: 1px;
}

pre.code
{
	display: block;
	padding: 8px;
	border: 1px dashed #ccc;
}

#index
{
	margin-top: 24px;
	float: left;
	width: 160px;
	position: absolute;
	left: 8px;
	background-color: #F3F3F3;
	padding: 8px;
}

#content
{
	margin-left: 190px;
	width: 600px;
}

.classList
{
	list-style-type: none;
	padding: 0;
	margin: 0 0 0 8px;
	font-family: arial, sans-serif;
	font-size: 1em;
	overflow: auto;
}

.classList li
{
	padding: 0;
	margin: 0 0 8px 0;
}

.summaryTable { width: 100%; }

h1.classTitle
{
	font-size:170%;
	line-height:130%;
}

h2 { font-size: 110%; }
caption, div.sectionTitle
{
	background-color: #7F8FB1;
	color: #fff;
	font-size:130%;
	text-align: left;
	padding: 2px 6px 2px 6px;
	border: 1px #7F8FB1 solid;
}

div.sectionTitle { margin-bottom: 8px; }
.summaryTable thead { display: none; }

.summaryTable td
{
	vertical-align: top;
	padding: 4px;
	border-bottom: 1px #7F8FB1 solid;
	border-right: 1px #7F8FB1 solid;
}

/*col#summaryAttributes {}*/
.summaryTable td.attributes
{
	border-left: 1px #7F8FB1 solid;
	width: 140px;
	text-align: right;
}

td.attributes, .fixedFont
{
	line-height: 15px;
	color: #002EBE;
	font-family: "Courier New",Courier,monospace;
	font-size: 13px;
}

.summaryTable td.nameDescription
{
	text-align: left;
	font-size: 13px;
	line-height: 15px;
}

.summaryTable td.nameDescription, .description
{
	line-height: 15px;
	padding: 4px;
	padding-left: 4px;
}

.summaryTable { margin-bottom: 8px; }

ul.inheritsList
{
	list-style: square;
	margin-left: 20px;
	padding-left: 0;
}

.detailList {
	margin-left: 20px; 
	line-height: 15px;
}
.detailList dt { margin-left: 20px; }

.detailList .heading
{
	font-weight: bold;
	padding-bottom: 6px;
	margin-left: 0;
}

.light, td.attributes, .light a:link, .light a:visited
{
	color: #777;
	font-style: italic;
}

.fineprint
{
	text-align: right;
	font-size: 10px;
}
		</style>
	</head>

	<body>
<!-- ============================== header ================================= -->	
		<!-- begin static/header.html -->
		<div id="header">
</div>
		<!-- end static/header.html -->

<!-- ============================== classes index ============================ -->
		<div id="index">
			<!-- begin publish.classesIndex -->
			<div align="center"><a href="../index.html">Class Index</a>
| <a href="../files.html">File Index</a></div>
<hr />
<h2>Classes</h2>
<ul class="classList">
	
	<li><i><a href="../symbols/_global_.html">_global_</a></i></li>
	
	<li><a href="../symbols/Background.html">Background</a></li>
	
	<li><a href="../symbols/Content.html">Content</a></li>
	
	<li><a href="../symbols/Options.html">Options</a></li>
	
</ul>
<hr />
			<!-- end publish.classesIndex -->
		</div>
		
		<div id="content">
<!-- ============================== class title ============================ -->
			<h1 class="classTitle">
				
				Namespace Background
			</h1>

<!-- ============================== class summary ========================== -->			
			<p class="description">
				
				
			
				Background script functions.
				
				
					<br /><i>Defined in: </i> <a href="../symbols/src/myp2pespn_myp2pespn_script__background.js.html">background.js</a>.
				
			</p>

<!-- ============================== constructor summary ==================== -->			
			
			<table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class Background.">
				<caption>Namespace Summary</caption>
				<thead>
					<tr>
						<th scope="col">Constructor Attributes</th>
						<th scope="col">Constructor Name and Description</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td class="attributes">&nbsp;</td>
						<td class="nameDescription" >
							<div class="fixedFont">
								<b><a href="../symbols/Background.html#constructor">Background</a></b>
							</div>
							<div class="description">Background script functions.</div>
						</td>
					</tr>
				</tbody>
			</table>
			

<!-- ============================== properties summary ===================== -->
			
				
				
				<table class="summaryTable" cellspacing="0" summary="A summary of the fields documented in the class Background.">
					<caption>Field Summary</caption>
					<thead>
						<tr>
							<th scope="col">Field Attributes</th>
							<th scope="col">Field Name and Description</th>
						</tr>
					</thead>
					<tbody>
					
						<tr>
							<td class="attributes">&lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/Background.html#-BASKETBALL_REGEX">BASKETBALL_REGEX</a></b>
								</div>
								<div class="description">Determines whether a thread contains NCAA basketball info and extracts the date range into backrefs 1-4.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/Background.html#-DEFAULT_SETTINGS">DEFAULT_SETTINGS</a></b>
								</div>
								<div class="description">Default settings for local storage.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/Background.html#-FIRST_MATCH">FIRST_MATCH</a></b>
								</div>
								<div class="description">Denotes the first match in a regular expression.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/Background.html#-GAME_REGEX">GAME_REGEX</a></b>
								</div>
								<div class="description">Determines whether a text node contains game stream information.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/Background.html#-gameList">gameList</a></b>
								</div>
								<div class="description">List of games discovered.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/Background.html#-gameSearchDone">gameSearchDone</a></b>
								</div>
								<div class="description">Script is done looking through games in threads it's found.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/Background.html#-MAX_LINK_ITER">MAX_LINK_ITER</a></b>
								</div>
								<div class="description">Maximum number of nodes forward to search for links</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/Background.html#-MYP2P_FORUM_BASE_URL">MYP2P_FORUM_BASE_URL</a></b>
								</div>
								<div class="description">The base URL for the Myp2p forums.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/Background.html#-MYP2P_FORUM_NCAA_URL">MYP2P_FORUM_NCAA_URL</a></b>
								</div>
								<div class="description">The URL for which we look up the appropriate NCAA thread.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/Background.html#-SCHOOL_NAME_STANDARDIZATIONS">SCHOOL_NAME_STANDARDIZATIONS</a></b>
								</div>
								<div class="description">List of main sources for links.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/Background.html#-STREAM_SOURCES">STREAM_SOURCES</a></b>
								</div>
								<div class="description">List of main sources for links.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/Background.html#-TEAMS_REGEX">TEAMS_REGEX</a></b>
								</div>
								<div class="description">Determines the names of the teams playing in a game.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/Background.html#-TEXT_NODE_TYPE">TEXT_NODE_TYPE</a></b>
								</div>
								<div class="description">Included for backwards compatibility with IE, which doesn't understand Node.TEXT_NODE.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/Background.html#-threadSearchDone">threadSearchDone</a></b>
								</div>
								<div class="description">Script is done looking through threads.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/Background.html#-threadsFound">threadsFound</a></b>
								</div>
								<div class="description">Total number of threads found.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/Background.html#-threadsSearched">threadsSearched</a></b>
								</div>
								<div class="description">Total number of threads searched through.</div>
							</td>
						</tr>
					
					</tbody>
				</table>
				
				
				
			

<!-- ============================== methods summary ======================== -->
			
				
				
				<table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class Background.">
					<caption>Method Summary</caption>
					<thead>
						<tr>
							<th scope="col">Method Attributes</th>
							<th scope="col">Method Name and Description</th>
						</tr>
					</thead>
					<tbody>
					
						<tr>
							<td class="attributes">&lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Background.html#-getSettings">getSettings</a></b>()
								</div>
								<div class="description">Retrieves settings and, if necessary, restores defaults.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Background.html#-getStreamType">getStreamType</a></b>(url)
								</div>
								<div class="description">Gets the type of stream so an icon can be chosen for display on ESPN's scoreboard</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Background.html#-searchForGames">searchForGames</a></b>(url)
								</div>
								<div class="description">Loads NCAA basketball-relevant threads and parses their content for games.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Background.html#-searchForThread">searchForThread</a></b>()
								</div>
								<div class="description">Loads the basketball forum URL and looks for threads that contain NCAA basketball stream information.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Background.html#-standardizeSchoolName">standardizeSchoolName</a></b>(school)
								</div>
								<div class="description">Standardizes the names of schools due to different spelling conventions for 'North/South/East/West,' 'State,' etc.</div>
							</td>
						</tr>
					
					</tbody>
				</table>
				
				
				
			
<!-- ============================== events summary ======================== -->
			

<!-- ============================== constructor details ==================== -->		
			
			<div class="details"><a name="constructor"> </a>
				<div class="sectionTitle">
					Namespace Detail
				</div>
				
				<div class="fixedFont">
						<b>Background</b>
				</div>
				
				<div class="description">
					Background script functions.
					
				</div>
				
				
				
				
					
					
					
					
					
					
					

			</div>
			

<!-- ============================== field details ========================== -->		
			
				<div class="sectionTitle">
					Field Detail
				</div>
				
					<a name="-BASKETBALL_REGEX"> </a>
					<div class="fixedFont">&lt;inner&gt; 
					
					
					<b>BASKETBALL_REGEX</b>
					
					</div>
					<div class="description">
						Determines whether a thread contains NCAA basketball info and extracts the date range into backrefs 1-4.
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="-DEFAULT_SETTINGS"> </a>
					<div class="fixedFont">&lt;inner&gt; 
					
					
					<b>DEFAULT_SETTINGS</b>
					
					</div>
					<div class="description">
						Default settings for local storage.
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="-FIRST_MATCH"> </a>
					<div class="fixedFont">&lt;inner&gt; 
					
					
					<b>FIRST_MATCH</b>
					
					</div>
					<div class="description">
						Denotes the first match in a regular expression.
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="-GAME_REGEX"> </a>
					<div class="fixedFont">&lt;inner&gt; 
					
					
					<b>GAME_REGEX</b>
					
					</div>
					<div class="description">
						Determines whether a text node contains game stream information.
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="-gameList"> </a>
					<div class="fixedFont">&lt;inner&gt; 
					
					
					<b>gameList</b>
					
					</div>
					<div class="description">
						List of games discovered.
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="-gameSearchDone"> </a>
					<div class="fixedFont">&lt;inner&gt; 
					
					
					<b>gameSearchDone</b>
					
					</div>
					<div class="description">
						Script is done looking through games in threads it's found.
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="-MAX_LINK_ITER"> </a>
					<div class="fixedFont">&lt;inner&gt; 
					
					
					<b>MAX_LINK_ITER</b>
					
					</div>
					<div class="description">
						Maximum number of nodes forward to search for links
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="-MYP2P_FORUM_BASE_URL"> </a>
					<div class="fixedFont">&lt;inner&gt; 
					
					
					<b>MYP2P_FORUM_BASE_URL</b>
					
					</div>
					<div class="description">
						The base URL for the Myp2p forums.
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="-MYP2P_FORUM_NCAA_URL"> </a>
					<div class="fixedFont">&lt;inner&gt; 
					
					
					<b>MYP2P_FORUM_NCAA_URL</b>
					
					</div>
					<div class="description">
						The URL for which we look up the appropriate NCAA thread.
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="-SCHOOL_NAME_STANDARDIZATIONS"> </a>
					<div class="fixedFont">&lt;inner&gt; 
					
					
					<b>SCHOOL_NAME_STANDARDIZATIONS</b>
					
					</div>
					<div class="description">
						List of main sources for links. Used to determine which picture to show on ESPN scoreboard.
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="-STREAM_SOURCES"> </a>
					<div class="fixedFont">&lt;inner&gt; 
					
					
					<b>STREAM_SOURCES</b>
					
					</div>
					<div class="description">
						List of main sources for links. Used to determine which picture to show on ESPN scoreboard.
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="-TEAMS_REGEX"> </a>
					<div class="fixedFont">&lt;inner&gt; 
					
					
					<b>TEAMS_REGEX</b>
					
					</div>
					<div class="description">
						Determines the names of the teams playing in a game.
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="-TEXT_NODE_TYPE"> </a>
					<div class="fixedFont">&lt;inner&gt; 
					
					
					<b>TEXT_NODE_TYPE</b>
					
					</div>
					<div class="description">
						Included for backwards compatibility with IE, which doesn't understand Node.TEXT_NODE.
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="-threadSearchDone"> </a>
					<div class="fixedFont">&lt;inner&gt; 
					
					
					<b>threadSearchDone</b>
					
					</div>
					<div class="description">
						Script is done looking through threads.
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="-threadsFound"> </a>
					<div class="fixedFont">&lt;inner&gt; 
					
					
					<b>threadsFound</b>
					
					</div>
					<div class="description">
						Total number of threads found.
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="-threadsSearched"> </a>
					<div class="fixedFont">&lt;inner&gt; 
					
					
					<b>threadsSearched</b>
					
					</div>
					<div class="description">
						Total number of threads searched through.
						
						
					</div>
					
					

						
						
						
						

					
				
			

<!-- ============================== method details ========================= -->		
			
				<div class="sectionTitle">
					Method Detail
				</div>
				
					<a name="-getSettings"> </a>
					<div class="fixedFont">&lt;inner&gt; 
					
					
					<b>getSettings</b>()
					
					</div>
					<div class="description">
						Retrieves settings and, if necessary, restores defaults.
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="-getStreamType"> </a>
					<div class="fixedFont">&lt;inner&gt; 
					
					<span class="light">{string}</span>
					<b>getStreamType</b>(url)
					
					</div>
					<div class="description">
						Gets the type of stream so an icon can be chosen for display on ESPN's scoreboard
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{string}</span> <b>url</b>
									
								</dt>
								<dd>The stream's url.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{string}</span> The type of stream.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="-searchForGames"> </a>
					<div class="fixedFont">&lt;inner&gt; 
					
					
					<b>searchForGames</b>(url)
					
					</div>
					<div class="description">
						Loads NCAA basketball-relevant threads and parses their content for games.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{string}</span> <b>url</b>
									
								</dt>
								<dd>The path to the thread, excluding the domain name defined in MYP2P_FORUM_BASE_URL.</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="-searchForThread"> </a>
					<div class="fixedFont">&lt;inner&gt; 
					
					
					<b>searchForThread</b>()
					
					</div>
					<div class="description">
						Loads the basketball forum URL and looks for threads that contain NCAA basketball stream information.
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="-standardizeSchoolName"> </a>
					<div class="fixedFont">&lt;inner&gt; 
					
					<span class="light">{string}</span>
					<b>standardizeSchoolName</b>(school)
					
					</div>
					<div class="description">
						Standardizes the names of schools due to different spelling conventions for 'North/South/East/West,' 'State,' etc.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{string}</span> <b>school</b>
									
								</dt>
								<dd>The unstandardized name of the school.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{string}</span> The standardized name of the school.</dd>
							
							</dl>
						
						
						

					
				
			
			
<!-- ============================== event details ========================= -->		
			
			
			<hr />
		</div>

		
<!-- ============================== footer ================================= -->
		<div class="fineprint" style="clear:both">
			
			Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blank">JsDoc Toolkit</a> 2.3.2 on Sat Feb 12 2011 03:17:20 GMT+0900 (JST)
		</div>
	</body>
</html>
